package j05math;

import java.util.UUID;

public class J1math {
    public static void main(String[] args) {
        System.out.println(Math.abs(-3));
        System.out.println(Math.abs(3));
        System.out.println(Math.abs(-3.5));

        System.out.println(Math.ceil(1.2));//2;
        System.out.println(Math.ceil(-1.2));//-1

        System.out.println(Math.floor(4.5));//4.0
        System.out.println(Math.floor(-4.5));//-5.0

        System.out.println(Math.pow(2,3));//8
        System.out.println(Math.round(4.5));//5
        System.out.println(Math.round(4.1));//4
        System.out.println(Math.round(4.6));//5
        System.out.println("=====");
        for (int i = 0; i < 10; i++) {
            System.out.println(Math.random()*10);
        }

        System.out.println(UUID.randomUUID().toString());

    }
}
